﻿using Basic.FlowApplication.Interface;
using Basic.FlowRemoteModel.Application;
using WeDonekRpc.Client.Interface;

namespace Basic.FlowApplication.RpcEvent
{
    internal class AuditCloseEvent : IRpcApiService
    {
        private readonly IAuditCloseService _Service;

        public AuditCloseEvent ( IAuditCloseService service )
        {
            this._Service = service;
        }

        public void CloseAudit ( CloseAudit obj )
        {
            this._Service.Close(obj.LogId, obj.EmpId);
        }
    }
}
